import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

Rectangle {
    Layout.preferredWidth: 120
    Layout.preferredHeight: 40
    color: "lightblue"
    radius: 4

    Text {
        anchors.centerIn: parent
        text: "基础 Tooltip"
    }

    ToolTip {
        text: "这是一个基础的tooltip示例"
        delay: 500
        timeout: 5000
        visible: basicMA.hovered
    }

    HoverHandler {
        id: basicMA
    }
} 